"""jingdong URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.conf.urls import url
from . import view
from  django.conf.urls.static import static
from  django.conf import settings
urlpatterns = [
    url("^index",view.index),
    url("^login$",view.login),
    url("^toinformation$",view.toinformation),
    url("^information$", view.information),
    url("^okinformation$", view.okinformation),
    url("^toindex$", view.toindex),
    url("^save", view.save),
    url("^register$",view.register),
    url("^toregister$",view.toregister),
    url("^update_information$", view.update_information),
    url(r"^is_cookie",view.is_cookie),  #返回首页
    url(r"^address",view.address),  #收货地址页面
    url(r'^fenye',view.fenye),
    url(r"^add_new_address",view.add_new_address),  #新增收货地址
    url(r"^add_address$", view.add_address),  #将地址存入数据库中
    url(r"^to_update_add_address$", view.to_update_add_address),  # 跳转到修改的地址存入数据库中
    url(r"^update_add_address$", view.update_add_address),  #将修改的地址存入数据库中
    url(r"^remove_address$", view.remove_address),  # 删除数据库的信息页面

    url(r"admin",view.admin),  #我的京东
    url(r"^shopping",view.shopping), #商品页面
     url(r"^toshangchuan$", view.toshangchuan),
    url(r"^shangchuan$",view.shangchuan),  #上传商品信息
    url(r"^cart$",view.cart),  #往购物车数据库中增加商品
    url(r"^add_cart_success",view.add_cart_success),  #购物车加入成功后返回的页面
    url(r"^tocart$",view.tocart),  #返回购物车页面
    url(r"^show_shopping",view.show_shopping),  #搜索并展示所有数据在页面上
    url(r"^manage$",view.manage),
    url(r'^personal_all$',view.chakan_personal),#管理员  查看用户信息
    url(r'^personal_address$',view.personal_address),#管理员   查看用户下的收货地址信息
    url(r'^personal_shop$',view.personal_shop),#管理员查看用户购物车
    url(r'^look_all$',view.look_all_shop),#管理员查看所有商品信息
    url(r'^file$',view.add_shop_card),#管理员查看所有商品信息
    url(r'^denglu_manage$',view.tomanage_indes),#进入管理登陆页面
    url(r'^all_mg$',view.manage_jinru),#管理员登陆后
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
